package com.zenghus.jenkinsspringboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 曾虎
 * @Date 2021/3/25
 */
@RestController
public class IndexController {

    @GetMapping("/")
    public String index(){
        return "index";
    }


    @GetMapping("/hello/{name}")
    public String hello(@PathVariable("name") String name){
        return "hello "+name;
    }

}
